package com.service;

import com.Exception.NormalException.FileExceptions.FileFormatException;
import com.entity.Group;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XTC
 * @since 2024-07-10
 */
public interface GroupService extends IService<Group> {
    boolean add(Group group);

    List<Group> getMyGroup(Integer userId);

    boolean delete(Integer groupId);

    String uploadHead(Integer groupId, MultipartFile head) throws FileFormatException, IOException;
}
